package com.lmu.travel.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import org.springframework.stereotype.Component;

import java.io.Serializable;

/**
 * @className: ${NAME}
 * @description: ${TODO}
 * @author liuxuhuang
 * @email liuxuhuang3970@qq.com
 * @date ${DATE} ${TIME}
 * @version：1.0
 */

/**
 * 分类表(Category)表实体类
 *
 * @author liuxuhuang
 * @since 2021-06-28 16:50:53
 */

@TableName(value = "", keepGlobalPrefix = true)
@ApiModel(value = "分类表", description = "")
@Component
public class Category implements Serializable {

    private static final long serialVersionUID = 781690424372257662L;

    private Integer cid;

    private String cname;

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public Integer getCid() {
        return cid;
    }

    public void setCid(Integer cid) {
        this.cid = cid;
    }

    public String getCname() {
        return cname;
    }

    public void setCname(String cname) {
        this.cname = cname;
    }

    public Category() {
    }

    public Category(Integer cid, String cname) {
        this.cid = cid;
        this.cname = cname;
    }

    @Override
    public String toString() {
        return "Category{" +
                "cid=" + cid +
                ", cname='" + cname + '\'' +
                '}';
    }
}